package cn.leestudio.restlib.core;

/**
 * 描 述:
 *
 * @author: lihui
 * @date: 2017-12-11 11:46
 */

public enum RestStatus {
    HTTP_OK(200,"")
    ,HTTP_UNDEFINE(400,"网络连接不可用，请稍后再试")
    ,HTTP_JSON_ERROR(401,"数据解析异常");

    RestStatus(int code, String desc){
        this.code = code;
        this.desc = desc;
    }

    public int value(){
        return this.code;
    }
    public String desc() {
        return this.desc;
    }
    private int code;
    private String desc;
}
